<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateMoneyRecordsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('money_records', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer("uid");
            $table->decimal('money')->comment("金额");
            $table->integer("status")->default(1)->comment("状态，1等待打款，2已打款，-1已拒绝");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('money_records');
    }
}
